
{%- set default_cable = '40m' %}

{%- macro generate_buffer_pool_and_profiles() %}
    "BUFFER_POOL": {
        "ingress_lossless_pool": {
            "size": "32744448",
            "type": "ingress",
            "mode": "static"
        },
        "egress_lossy_pool": {
            "size": "32744448",
            "type": "egress",
            "mode": "dynamic"
        }
    },
    "BUFFER_PROFILE": {
        "ingress_lossy_profile": {
            "pool":"ingress_lossless_pool",
            "size":"0",
            "static_th":"32744448"
        },
        "egress_lossy_profile": {
            "pool":"egress_lossy_pool",
            "size":"0",
            "dynamic_th":"3"
        }
    },
{%- endmacro %}

{%- macro generate_pg_profils(port_names_active) %}
    "BUFFER_PG": {
        "{{ port_names_active }}|0": {
            "profile" : "ingress_lossy_profile"
        }
    },
{%- endmacro %}

{% macro generate_queue_buffers(port_names_active) %}
    "BUFFER_QUEUE": {
        "{{ port_names_active }}|0-6": {
            "profile" : "egress_lossy_profile"
        }
    }
{% endmacro %}

